"use strict";
cc._RF.push(module, '610cbP2IV5IpLCGWct8fXSG', 'miniParam');
// scripts/engines/services/miniGameContent/miniParam.ts

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getVideoFailLoadOrShow = exports.getAddShortcutReportData = exports.getLookVideoFailShareReportData = exports.getShareGameRecordReportData = exports.getLookVideoReportData = exports.getBeforeCloseVideoReportData = exports.getShowVideoReportData = exports.getLoadVideoReportData = exports.ADD_SHORTCUT = exports.VIDEO_FAIL_LOAD_OR_SHOW = exports.LOOK_VIDEO_FAIL_TO_SHARE = exports.SHARE_GAME_RECORD = exports.LOOK_VIDEO = exports.BEFORE_CLOSE_VIDEO = exports.SHOW_VIDEO = exports.LOAD_VIDEO = void 0;
//拉取激励视频请求
exports.LOAD_VIDEO = {
    key: 'loadVideo',
    data: ['source'],
};
//成功爆光激励视频
exports.SHOW_VIDEO = {
    key: 'showVideo',
    data: ['source'],
};
//提前关闭激励视频
exports.BEFORE_CLOSE_VIDEO = {
    key: 'beforeCloseVideo',
    data: ['source'],
};
//成功观看激励视频
exports.LOOK_VIDEO = {
    key: 'lookVideo',
    data: ['source'],
};
//分享录屏
exports.SHARE_GAME_RECORD = {
    key: 'shareGameRecord',
    data: ['explain'],
};
//激励视频派发失败 拉取分享获得奖励
exports.LOOK_VIDEO_FAIL_TO_SHARE = {
    key: 'lookVideoFailToShare',
    data: ['explain']
};
//激励视频错误
exports.VIDEO_FAIL_LOAD_OR_SHOW = {
    key: 'videoFailLoadOrShow',
    data: ['code', 'msg'],
};
//添加桌面事件
exports.ADD_SHORTCUT = {
    key: 'addShortcut',
    data: ['explain']
};
//获取 拉取广告 上报对象
function getLoadVideoReportData(properties) {
    return getReportObjectData(exports.LOAD_VIDEO, properties);
}
exports.getLoadVideoReportData = getLoadVideoReportData;
//获取 展示广告 上报对象
function getShowVideoReportData(properties) {
    return getReportObjectData(exports.SHOW_VIDEO, properties);
}
exports.getShowVideoReportData = getShowVideoReportData;
//获取 提前关闭 上报对象
function getBeforeCloseVideoReportData(properties) {
    return getReportObjectData(exports.BEFORE_CLOSE_VIDEO, properties);
}
exports.getBeforeCloseVideoReportData = getBeforeCloseVideoReportData;
//获取 成功观看激励视频 上报对象
function getLookVideoReportData(properties) {
    return getReportObjectData(exports.LOOK_VIDEO, properties);
}
exports.getLookVideoReportData = getLookVideoReportData;
//获取 分享录屏 上报对象
function getShareGameRecordReportData(properties) {
    return getReportObjectData(exports.SHARE_GAME_RECORD, properties);
}
exports.getShareGameRecordReportData = getShareGameRecordReportData;
//获取 激励失败派发失败拉取分享获得奖励
function getLookVideoFailShareReportData(properties) {
    return getReportObjectData(exports.LOOK_VIDEO_FAIL_TO_SHARE, properties);
}
exports.getLookVideoFailShareReportData = getLookVideoFailShareReportData;
//获取 添加桌面
function getAddShortcutReportData(properties) {
    return getReportObjectData(exports.ADD_SHORTCUT, properties);
}
exports.getAddShortcutReportData = getAddShortcutReportData;
//获取 加载或展示激励视频失败
function getVideoFailLoadOrShow(properties) {
    return getReportObjectData(exports.VIDEO_FAIL_LOAD_OR_SHOW, properties);
}
exports.getVideoFailLoadOrShow = getVideoFailLoadOrShow;
function getReportObjectData(srcType, properties) {
    var strings = [];
    if (typeof properties == 'string') {
        strings = [properties];
    }
    else {
        strings = [].concat(properties);
    }
    var obj = {};
    //key
    obj.key = srcType.key;
    obj.obj = {};
    //data
    for (var k in srcType.data) {
        var key = srcType.data[k];
        obj.obj[key] = strings.shift();
    }
    return obj;
}

cc._RF.pop();